package com.itdev.matcherapp.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ServiceControl extends Activity {
	private Button buttonStart;
	private Button buttonStop;

	
	@Override
	protected void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setPersistent(true);
		setContentView(R.layout.service_control);
		buttonStart = (Button) findViewById(R.id.servicecontrol_buttonOK);
		buttonStop = (Button) findViewById(R.id.servicecontrol_buttonCancel);
		buttonStart.setOnClickListener(new OnClickListener(){

			public void onClick(View button) {
				startService(new Intent(ServiceControl.this, PeopleFillterService.class), null);
			}
			
		});
		buttonStop.setOnClickListener(new OnClickListener(){

			public void onClick(View button) {
				stopService(new Intent(ServiceControl.this, PeopleFillterService.class));
			}
			
		});
	}
	
}
